package b2.config
{
	public class EffectConfig
	{
		//唯一索引, 0, 无敌; 1, 增加攻击; 2, 增加暴击; 3, 移动减速; 4, 回复HP; 5, 减弱攻击; 6, 减弱防御; 7, 减少HP; 8, 减少EP; 
		//9, 能量封印; 10, 时间停止; 11, 能量护盾; 12, 停止移动; 13, 混乱; 14, 炮弹封印,; 15, 回复EP; 16, 疯狂; 17, 荆棘; 18, 攻击减速
		
		//减少HP
		public static const HP_DECREASE:int = 7;
		//移动减速
		public static const MOVE_SLOW:int = 3;
		//停止移动
		public static const MOVE_STOP:int = 12;
		//头盔效果 
		public static const HELMET:int = 22; 
		//霜之哀伤 
		public static const FROST_MOURNE:int = 23; 
		//冲锋
		public static const ASSAULT:int = 24; 
		//死亡凋零
		public static const DEATH_DECAY:int = 25;
		//撞车
		public static const COLLIDE:int = 26;
		//燃烧
		public static const BURN:int = 27;
		//涅槃
		public static const NIRVANA:int = 28;
		
		public var index:int;
		//名字
		public var name:String;
		//描述文字
		public var description:String;
		//图片
		public var iconImage:String;
		//效果动画
		public var effectImage:String;
		//效果位置X
		public var imgPosX:int;
		//效果位置Y
		public var imgPosY:int;
		//效果宽度
		public var imgWidth:int;
		//效果高度
		public var imgHeight:int;
		//效果透明（千分数）
		public var imgAlpha:int;
		
		public function EffectConfig(effectXML:XML)
		{
			index = effectXML.index;
			name = effectXML.name;
			description = effectXML.description;
			iconImage = effectXML.iconImage;
			effectImage = effectXML.effectImage;
			imgPosX = effectXML.imgPosX;
			imgPosY = effectXML.imgPosY;
			imgWidth = effectXML.imgWidth;
			imgHeight = effectXML.imgHeight;
			if (effectXML.imgAlpha != undefined)
				imgAlpha = effectXML.imgAlpha;
			else
				imgAlpha = 1000;
		}

	}
}